#ifndef DEBUGCONSOLE_H
#define DEBUGCONSOLE_H

#include <QDialog>

namespace Ui
{
class DebugConsole;
}

class DebugConsole : public QDialog
{
    Q_OBJECT

public:
    explicit DebugConsole(QWidget *parent = 0);
    ~DebugConsole();
    static const bool POPUP_ON_ERROR = true;
    void setParent(QWidget *parent);
    void log(const QString &text);
    void error(const QString &text);


private slots:
    void on_clearButton_clicked();

private:
    Ui::DebugConsole *ui;

};

#endif // DEBUGCONSOLE_H
